<%@ page contentType="text/html;charset=UTF-8" %>
<div class="bjui-pageHeader">
    <!-- 页面头部 -->
    <div align="center">发布标的</div>
</div>

<div class="bjui-pageContent" style="top: 0; bottom: 35px;">

    <div class="bjui-headBar">
        <!-- 顶部工具条 -->
    </div>

    <form action="/admin/loan/loan/ajax/put" data-toggle="validate" data-alertmsg="true">
        <div data-layout-h="0" class="bjui-row col-2">
            <!-- 内容区 -->
            <label class="row-label">标的名称:</label>
            <div class="row-input">
                <input name="fullName" title="贷款名称" size="30" data-rule="required"/>
            </div>

            <label class="row-label">简短名称:</label>
            <div class="row-input">
                <input type="text" name="shortName" title="简短名称" size="30" data-rule="required"/>
            </div>

            <label class="row-label">投标类型</label>
            <div class="row-input">
                <select name="operationType" title="投标类型" data-toggle="selectpicker" data-width="300"
                        data-rule="required">
                    <option value="1">投标类型1</option>
                    <option value="2">投标类型2</option>
                    <option value="3">投标类型3</option>
                    <option value="4">投标类型4</option>
                </select>
            </div>

            <%--<label class="row-label">借款用户ID:</label>--%>
            <%--<div class="row-input">--%>
            <%--<input type="text" name="userId" title="借款用户ID" size="30" data-rule="required"/>--%>
            <%--</div>--%>

            <label class="row-label">借款人用户名:</label>
            <div class="row-input">
                <input type="text" name="userName" title="借款用户名" size="30" data-rule="required"/>
            </div>

            <label class="row-label">所在城市:</label>
            <div class="row-input">
                <select name="city" title="所在城市" data-toggle="selectpicker" data-width="300" data-rule="required">
                    <option value="1">北京</option>
                    <option value="2">上海</option>
                    <option value="3">广州</option>
                </select>
            </div>

            <label class="row-label">借款用途:</label>
            <div class="row-input">
                <select name="useOf" title="借款用途" data-toggle="selectpicker" data-width="300" data-rule="required">
                    <option value="1">吃</option>
                    <option value="2">喝</option>
                    <option value="3">玩</option>
                    <option value="4">乐</option>
                </select>
            </div>

            <label class="row-label">最低投标金额(元):</label>
            <div class="row-input">
                <input type="text" name="minAmountD" value="100.0" data-toggle="spinner" data-step="100" data-min="1"
                       data-max="999999999" title="最低投标金额" size="30" data-rule="required">
            </div>

            <label class="row-label">最高投标金额(元):</label>
            <div class="row-input">
                <input type="text" name="maxAmountD" value="10000.0" data-toggle="spinner" data-step="100" data-min="1"
                       data-max="999999999" title="最高投标金额" size="30" data-rule="required">
            </div>

            <label class="row-label">筹标期限(天):</label>
            <div class="row-input">
                <input type="text" name="allottedTime" value="10" data-toggle="spinner" data-step="1" data-min="1"
                       data-max="999999999" title="筹标期限" size="30" data-rule="required">
            </div>

            <label class="row-label">借款期限(天):</label>
            <div class="row-input">
                <input type="text" name="loanTime" value="10" data-toggle="spinner" data-step="10" data-min="1"
                       data-max="999999999" title="借款期限" size="30" data-rule="required">
            </div>

            <label class="row-label">年利率(%):</label>
            <div class="row-input">
                <input type="text" name="rateD" value="10.0" data-toggle="spinner" data-step="0.1" data-min="1"
                       data-max="15" data-decimal-place="1" title="年利率" size="30" data-rule="required">
            </div>

            <label class="row-label">逾期罚息(%):</label>
            <div class="row-input">
                <input type="text" name="arrearsOverRateD" value="10.0" data-toggle="spinner" data-step="0.1"
                       data-min="0" data-max="15" data-decimal-place="1" title="逾期罚息" size="30" data-rule="required">
            </div>

            <label class="row-label">提前还款补偿(%):</label>
            <div class="row-input">
                <input type="text" name="compensateD" value="10.0" data-toggle="spinner" data-step="0.1"
                       data-min="0" data-max="15" data-decimal-place="1" title="逾期罚息" size="30" data-rule="required">
            </div>

            <label class="row-label">逾期罚息获得:</label>
            <div class="row-input">
                <input type="radio" name="overMoneyGiveCompany" value="true" data-toggle="icheck"
                       data-label="公司" checked="" title="公司">
                <input type="radio" name="overMoneyGiveCompany" value="false" data-toggle="icheck"
                       data-label="用户" title="用户">
            </div>

            <label class="row-label">违约金获得:</label>
            <div class="row-input">
                <input type="radio" name="compensateMoneyGiveCompany" value="true" data-toggle="icheck"
                       data-label="公司" checked="" title="公司">
                <input type="radio" name="compensateMoneyGiveCompany" value="false" data-toggle="icheck"
                       data-label="用户" title="用户">
            </div>

            <label class="row-label">还款方式:</label>
            <div class="row-input">
                <select name="repaymentType" title="还款方式" data-toggle="selectpicker" data-width="300"
                        data-rule="required">
                    <option value="2" selected="">一次性还款</option>
                </select>
            </div>

            <label class="row-label">借款金额(元)</label>
            <div class="row-input">
                <input name="loanAmountD" value="10000.0" data-toggle="spinner" data-step="100"
                       data-min="100" data-max="999999999" data-decimal-place="1" title="借款金额" size="30"
                       data-rule="required">
            </div>

            <label class="row-label">抵押物图片:</label>
            <div class="row-input">
                <input type="file" data-name="pawnPic" data-toggle="webuploader" data-options="
                {
                    pick: {label: '点击选择抵押物图片'},
                    server: '/tool/uploadFile',
                    fileNumLimit: 10,
                    formData: {dir:'putLoan'},
                    required: true,
                    accept: {
                        title: '抵押物图片',
                        extensions: 'gif,jpg,jpeg,bmp,png'
                    }
                }">
            </div>

            <label class="row-label">标的描述:</label>
            <div class="row-input">
                <textarea cols="30" rows="4" name="loanDesc" title="贷款描述" data-toggle="autoheight"
                          data-rule="required"></textarea>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close btn" data-icon="close"><i class="fa fa-close"></i> 取消</button>
        </li>
        <li>
            <button type="submit" class="btn-default btn" data-icon="save"><i class="fa fa-save"></i> 保存</button>
        </li>
    </ul>
</div>